﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BSCMFF.Core.BusinessLayer
{
    public static class SigmoidHelper
    {
        const double e = 2.71828182845904523536;

        public static double Sigmoid(int x, double A, double B)
        {
            //10*(1/(1+euler^(-(x-4))))

            //new 100*(1/(1+(euler)^((-(x-50))/10)))

            //double A = (double)RadNumericTextBoxA.Value;
            //double B = (double)RadNumericTextBoxB.Value;
            

            return 100 * (1 / (1 + Math.Pow(e, (-1 * (x - A) / B))));
        }

    }
}
